<?php

class AcaoChamadoService extends Model {

    /**
     * @var AcaoChamadoDao
     */
    private $acaoChamadoDao;

    public function injectDependencies() {
        $this->acaoChamadoDao = AcaoChamadoDao::getInstance();
    }

    public function findAll() {
        return $this->acaoChamadoDao->findAll();
    }

    public function findById($ItMessageType) {
        foreach(Dracosys::getSessionValue(SESSION_SYSTEM, 'CalledActions') as $AcaoChamado) {
            if( $AcaoChamado->getIDAcaoChamado() == $ItMessageType ) {
                return $AcaoChamado;
            }
        }
    }

}

?>
